package com.coolingme.chatroom;

/**
 * 聊天室测试，简单应用，理解其中的道
 *
 * @author wangyue
 * @date 2020-09-26 21:57
 */
public class Test {

    public static void main(String[] args) {
        ChatRoom chatRoom = new ChatRoom("讨论组1");
        User zhangsan = new User(chatRoom, "zhangsan");
        User lisi = new User(chatRoom, "lisi");

        zhangsan.sendMessage("你好，我叫张三");
        lisi.sendMessage("你好，我叫李四");
    }

}
